﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using log4net;


public partial class Test : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Logger.Info("Test1 Page is called");
    }

    #region Logger Instance
    private static readonly ILog Logger = LogManager.GetLogger(typeof(Test));
    #endregion

    protected override void OnError(EventArgs e)
    {
        base.OnError(e);
        // Get last error from the server
        Exception exc = Server.GetLastError();
        if (exc is Exception)
        {
            Logger.Error("Error at Page Level-->Test", exc);
            //if (MustCallConcludeMS)
            //{
            //    new BMinuteSheetBL().UpdateMinuteSheetStatus(HearingId, Common.Enumerations.MinuteSheetStatus.E, string.Empty,
            //      string.Empty, false, string.Empty, DateTime.MinValue, exc.Message, true);
            //}
            // Server.ClearError();
            // Clear the error from the server
            // throw exc;
        }
    }
}